using MediatR;
using B.S.XZYData.ErrorCode;

namespace B.S.XZYData.Api.Wrter.Application.Command.Route
{
    public class AddRouteStepCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 工艺路线ID
        /// </summary>
        public int RouteId { get; set; }

        /// <summary>
        /// 工序列表
        /// </summary>
        public List<AddRouteStepDto> Steps { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        public string OperateBy { get; set; }
    }

    public class AddRouteStepDto
    {
        /// <summary>
        /// 工序顺序
        /// </summary>
        public int Sequence { get; set; }

        /// <summary>
        /// 工序编号
        /// </summary>
        public string ProcessCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string ProcessName { get; set; }

        /// <summary>
        /// 报工配比
        /// </summary>
        public decimal? Ratio { get; set; }

        /// <summary>
        /// 工序类型
        /// </summary>
        public string? Type { get; set; }
    }
} 